package chap4.Task1;
import java.util.Scanner;
public class Task7 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入一个数字:");
        long a = input.nextLong();
        long d = a;
        long b = 0, c = 0;
        while (d != 0) {
            b = d % 10;
            c = c * 10 + b;
            d = d / 10;
        }
        if (a == c) {
            System.out.println(a + "是回文数");
        } else {
            System.out.println(a + "不是回文数");
        }
    }
}
